<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
    <h1><%= title %></h1>
    <p>Welcome to <%= title %></p>

     <% if(username){ %>
       <p>欢迎你 <%-username %></p>
      <button onclick="location.href='/logout'">退出登录</button>
      <button onclick="location.href='/list'">电影列表</button>
     <% }else{ %>
        <button onclick="location.href='/login'">点击登录</button>
        <button onclick="location.href='/register'">点击注册</button>
     <% } %>
  </body>
</html>
